package com.crape.common.model;

/**
 * 用户类
 * 
 * @author ChenKai 2012-11-4 上午11:44:41
 */
public class Account {

    private Long    id;          // ID
    private String  uuid;        // UUID
    private String  email;       // 注册邮箱
    private String  username;    // 用户名
    private String  nickname;    // 用户昵称
    private String  password;    // 密码
    private Integer agree;       // 0=不同意，1=同意
    private Integer status;      // 用户状态：0=未激活，1=已激活，-1=被查封
    private Integer usertype;    // 用户类型：0=普通用户，1=达人，2=管理员
    private Integer darrenstatus; // 达人状态：0=未申请、1=待审核、2=已通过、-1=已拒绝
    private String  sys;         // 关联系统
    private String  loginid;     // 关联系统用户登陆ID
    private String  createdate;  // 创建时间
    private String  modifydate;  // 更新时间

    // ====================================
    private String  newpassword;     // 新密码
    private String  confirm;     // 确认密码
    private String  checkcode;   // 验证码
    private Boolean isAgreement; // 是否同意

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAgree() {
        return agree;
    }

    public void setAgree(Integer agree) {
        this.agree = agree;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUsertype() {
        return usertype;
    }

    public void setUsertype(Integer usertype) {
        this.usertype = usertype;
    }

    public Integer getDarrenstatus() {
        return darrenstatus;
    }

    public void setDarrenstatus(Integer darrenstatus) {
        this.darrenstatus = darrenstatus;
    }

    public String getSys() {
        return sys;
    }

    public void setSys(String sys) {
        this.sys = sys;
    }

    public String getLoginid() {
        return loginid;
    }

    public void setLoginid(String loginid) {
        this.loginid = loginid;
    }

    public String getCreatedate() {
        if (createdate != null && createdate.lastIndexOf(".") > -1) {
            createdate = createdate.substring(0, createdate.lastIndexOf("."));
        }
        return createdate;
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    public String getModifydate() {
        if (modifydate != null && modifydate.lastIndexOf(".") > -1) {
            modifydate = modifydate.substring(0, modifydate.lastIndexOf("."));
        }
        return modifydate;
    }

    public void setModifydate(String modifydate) {
        this.modifydate = modifydate;
    }
    
    public String getNewpassword() {
        return newpassword;
    }
    
    public void setNewpassword(String newpassword) {
        this.newpassword = newpassword;
    }

    public String getConfirm() {
        return confirm;
    }

    public void setConfirm(String confirm) {
        this.confirm = confirm;
    }

    public String getCheckcode() {
        return checkcode;
    }

    public void setCheckcode(String checkcode) {
        this.checkcode = checkcode;
    }

    public Boolean getIsAgreement() {
        return isAgreement;
    }

    public void setIsAgreement(Boolean isAgreement) {
        this.isAgreement = isAgreement;
    }
}
